package com.ambow.dao.impl;



import java.util.List;

import com.ambow.Entity.Payment;
import com.ambow.dao.PaymentDao;
import com.ambow.utils.BaseDAO;





public class PaymentDaoImpl implements PaymentDao{

	@Override
	public boolean add(Payment payment) {
		return BaseDAO.add(payment);
	}

	@Override
	public List<Payment> queryByProperty(String hql) {
		return BaseDAO.queryAll(hql);
	}

	@Override
	public Payment queryById(Class c, Integer payment_id) {
		return (Payment) BaseDAO.get(c, payment_id);
	}

	@Override
	public boolean update(Payment payment) {
		return BaseDAO.update(payment);
	}

}
